package com.mzy.datepackage.M2022.Apr.six;

import java.sql.Timestamp;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author mzy
 * @Date 2022/4/9 14:11
 * @Version 1.0
 */
public class Demo5 {
    public static void main(String args[]) {
        Set<String> set = new HashSet<>(Arrays.asList("One", "Two", "Three", "Four", "Five", "Six"));
        System.out.println("Set = " + set);
        String str = String.join(", ", set);
        System.out.println("Comma separated String: "+ str);

        Timestamp timestamp= Timestamp.valueOf(LocalDateTime.now());
        System.out.println(timestamp.getTime());
    }
}